package com.ygs.secs.service.impl;

import com.ygs.secs.mapper.EnterprisePhotoMapper;
import com.ygs.secs.model.EnterprisePhoto;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

import com.ygs.secs.mapper.EnterpriseMapper;
import com.ygs.secs.model.Enterprise;
import com.ygs.secs.service.EnterpriseService;

@Service
public class EnterpriseServiceImpl implements EnterpriseService {

    @Resource
    private EnterpriseMapper enterpriseMapper;

    @Resource
    private EnterprisePhotoMapper enterprisePhotoMapper;

    @Override
    public int deleteByPrimaryKey(String enterpriseid) {
        return enterpriseMapper.deleteByPrimaryKey(enterpriseid);
    }

    @Override
    public int insert(Enterprise record) {
        return enterpriseMapper.insert(record);
    }

    @Override
    public int insertSelective(Enterprise record) {
        return enterpriseMapper.insertSelective(record);
    }

    @Override
    public Enterprise selectByPrimaryKey(String enterpriseid) {
        return enterpriseMapper.selectByPrimaryKey(enterpriseid);
    }

    @Override
    public int updateByPrimaryKeySelective(Enterprise record) {
        return enterpriseMapper.updateByPrimaryKeySelective(record);
    }

    @Override
    public int updateByPrimaryKey(Enterprise record) {
        return enterpriseMapper.updateByPrimaryKey(record);
    }

    @Override
    public int updateBatch(List<Enterprise> list) {
        return enterpriseMapper.updateBatch(list);
    }

    @Override
    public int updateBatchSelective(List<Enterprise> list) {
        return enterpriseMapper.updateBatchSelective(list);
    }

    @Override
    public int batchInsert(List<Enterprise> list) {
        return enterpriseMapper.batchInsert(list);
    }

    @Override
    public int updatepwd(Enterprise enterprise) {
        return enterpriseMapper.updatepwd(enterprise);
    }

    @Override
    public Enterprise getcompanyDetail(String priseid) {
        return enterpriseMapper.getcompanyDetail(priseid);
    }

    @Override
    public List<Enterprise> getlatestEnterpriseList() {
        return enterpriseMapper.getlatestEnterpriseList();
    }

    @Override
    public List<Enterprise> getfamousEnterpriseList() {
        return enterpriseMapper.getfamousEnterpriseList();
    }

    @Override
    public int batchDelete(String[] enterprises) {
        return enterpriseMapper.batchDelete(enterprises);
    }

    @Override
    public List<Enterprise> getEnterpriseByAttributes(Enterprise record) {
        return enterpriseMapper.getEnterpriseByAttributes(record);
    }

    @Override
    public List<Enterprise> findUncertifiedCompanies(String authcode) {
        return enterpriseMapper.findUncertifiedCompanies(authcode);
    }

    @Override
    public int batchReviewCompanies(String[] commpanys, String status, String vtime) {
        return enterpriseMapper.batchReviewCompanies(commpanys, status, vtime);
    }

}



